package org.springframework.boot.netty.annotation;

import java.lang.annotation.*;

/**
 * Author: huoxingzhi
 * Date: 2020/12/14
 * Email: hxz_798561819@163.com
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface ResponseBody {

    boolean enableAccessControlAllow() default false;
    String[] accessControlAllowOrigin() default {"*"};
    String[] accessControlAllowHeaders() default {"Origin, X-Requested-With, Content-Type, Accept"};
    String[] accessControlAllowMethods() default {"GET, POST, PUT, DELETE"};

}
